package temp;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class TestLog
{
	private static Log log = LogFactory.getLog(TestLog.class);

	public void log()
	{
		log.debug("Debug info.");
		log.info("Info info");
		log.warn("Warn info");
		log.error("Error info");
		log.fatal("Fatal info");
	}

	public static void main(String[] args)
	{
		System.out.println("log obj = " + log);
		TestLog test = new TestLog();
		test.log();
	}
}